<?php

function site_foot_html(){
	$src= <<<EOHTM
<style type="text/css">
div.ft,div.ft a {color:#aaa;}
</style>
<div class="ft" style="text-align:center">
<a href="http://www.shdic.com/mzsm.html">免责声明</a>
版权所有© 2005-2016 上海开拓信息 <a href="http://www.shdic.com" target="new">shdic.com</a> 保留所有权利。 <a href="http://www.miibeian.gov.cn" target="_blank">沪ICP备12034829号-1</a>&nbsp;网站改版中，欢迎邮件联系 kevinshen2014@163.com
EOHTM;
	return $src.PHP_EOL.site_51la_html();
}

function site_51la_html(){
	$src= <<<EOHTM
<script language="javascript" type="text/javascript" src="http://js.users.51.la/18779107.js"></script>
<noscript><a href="http://www.51.la/?18779107" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/18779107.asp" style="border:none" /></a></noscript>
EOHTM;
	return $src;
}

$ext_conf=BLAB_ROOT.'incl/ext_config.inc.php';
if(file_exists($ext_conf)){
	require_once $ext_conf;
	global $salt;
	$salt = $ext_salt;

	if(defined('SERVER_SOFTWARE')){
		$dbss['host']= $app_mysql_host;
		//$dbss['db_host_read'] = SAE_MYSQL_HOST_S;	
		$dbss['db_port'] = $app_mysql_port;
		
		$dbss['user'] = $app_mysql_user;
		$dbss['pass'] = $app_mysql_pwd;
		$dbss['name'] = $app_mysql_dbname;
	}

}

function kis_uuid($hyphen='',$prefix = '') {
	//Example of using the function -
	//Using without prefix.
	//echo uuid(); //Returns like ‘1225c695-cfb8-4ebb-aaaa-80da344e8352′   
	//Using with prefix
	//echo uuid('-','urn:uuid:');//Returns like ‘urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344e8352′

	// base on function uuid() ,mod for sorted
	//53d1be2f7b9392.93290838#53d1be2f-7b93-92$fe-7022-6a0493521f1c
	//53d1bdd7b0b6b#53d1bdd7-b0b6-b$db-bc4c-69b2cf0334ce
	$kk = uniqid('',true);  //53d1bc74439ba0.80927708
	$kk = explode('.', $kk);
	$kk= $kk[0];
	// $kk = uniqid();    //53d1bdd7b0b6b
	$jj=1;
	if(strlen($kk)>13){
	$jj=strlen($kk)-12; //-13+1
	}
	$chars = md5(uniqid(mt_rand(), true));
	$uuid = substr($kk, 0, 8).$hyphen
	.substr($kk, 8, 4).$hyphen;
	$uuid .= substr($kk, 12, $jj).substr($chars, 12,(4-$jj)).$hyphen
	.substr($chars, 16, 4).$hyphen
	.substr($chars, 20, 12);
	return $prefix.$uuid;
}


?>